package com.hellowx.qydcdev.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 后台用户表(User)表实体类
 *
 * @author hellowx
 * @since 2022-01-11 14:35:43
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class User extends Model<User> {

    /**
     * 主键
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 用户名称
     */
    private String name;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 密码
     */
    @JsonIgnore
    private String password;

    /**
     * 头像
     */
    private String avatar;

    /**
     * 店铺id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long businessId;


}

